package com.wxy.itcast.springbootwebday19.config;

import com.wxy.itcast.springbootwebday19.interceptor.CustonInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class customConfig implements WebMvcConfigurer{
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new CustonInterceptor()).addPathPatterns("/user/**").excludePathPatterns("/user/test02","/user/test03");
    }
}
